var $$scope;
var $CertusFormAjax;
var $CertusJsonAjax;
var $fileListService;
var $backlogPersonList;


// 印章管理
var stamplistColumns = [{
    id: 'signetName',
    title: '印章名称',
    type: 'string',
    width: 200,
    columnClass: 'text-center',
}, {
    id: 'subordinateComp',
    title: '所属公司',
    type: 'string',
    width: 150,
    columnClass: 'text-center',
}, {
    id: 'currentStatusName',
    title: '当前状态',
    type: 'string',
    width: 100,
    columnClass: 'text-center',
}, {
    id: 'currentUserName',
    title: '当前使用人',
    type: 'string',
    width: 100,
    columnClass: 'text-center',
}, {
    id: 'whetherToConfirmName',
    title: '是否确认',
    type: 'string',
    width: 100,
    columnClass: 'text-center',
}, {
    id: 'signetRemark',
    title: '备注',
    type: 'string',
    // width: 75,
    columnClass: 'text-left',
}, ];


// 用章申请列表
var stampColumns = [{
    id: 'signetName',
    title: '印章名称',
    type: 'string',
    width: 200,
    columnClass: 'text-center',
}, {
    id: 'applyManName',
    title: '申请人',
    type: 'string',
    width: 75,
    columnClass: 'text-center',
}, {
    id: 'createTime',
    title: '申请时间',
    type: 'string',
    width: 150,
    columnClass: 'text-center',
    resolution: function (value, record, column, grid, dataNo, columnNo) {
        var date = new Date(record.createTime);
        var content = $.fn.dlshouwen.grid.tools.dateFormat(date, "yyyy/MM/dd hh:mm");
        return content;
    }
}, {
    id: 'currentSatusName',
    title: '当前状态',
    type: 'string',
    width: 100,
    columnClass: 'text-center',
}, {
    id: 'whetherToConfirmName',
    title: '是否确认',
    type: 'string',
    width: 75,
    columnClass: 'text-center',
}, {
    id: 'application',
    title: '申请用途',
    type: 'string',
    columnClass: 'text-left',
}, {
    id: 'operation',
    title: '操作',
    width: 60,
    type: 'string',
    columnClass: 'text-center',
    resolution: function (value, record, column, grid, dataNo, columnNo) {
        var content = '';
        content += '<a class="btn btn-xs btn-primary" href="#/selStamp/' + record.signetStepCode + '"><i class="icon-eye-open"></i>  查看</a>';
        // content += '  ';
        // content += '<button class="btn btn-xs btn-info" onclick="getast(this);"><i class="icon-ok"></i>  确认询价</button>';
        return content;
    }
}, ];


// 上传文件展示隐藏效果
function shuplod() {
    var status = $(".shuplod").css('display');
    if (status == "none") {
        $(".shuplod").show();
        var boxId = "#shuplod";
        toBox(boxId);
    } else {
        $(".shuplod").hide();
    }
}